package qlsl.androiddesign.view.subview.commonview;

import com.alipay.android.phone.mrpc.core.ac;
import com.qlsl.androiddesign.kuaiwa.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import qlsl.androiddesign.activity.commonactivity.WebActivity;
import qlsl.androiddesign.activity.subactivity.CopyActivity;
import qlsl.androiddesign.entity.commonentity.FragmentArgs;
import qlsl.androiddesign.view.baseview.FunctionView;

/**
 * ****页<br/>
 * 需要传入的键：<br/>
 * 传入的值类型： <br/>
 * 传入的值含义：<br/>
 * 是否必传 ：
 */
public class RefundView extends WebView {
	FragmentArgs args;

	public RefundView(WebActivity activity) {
		super(activity);
	}

	protected void initView(View view) {
		super.initView(view);
		Bundle bundle = activity.getIntent().getExtras();
		args = (FragmentArgs) bundle.getSerializable("data");
		if (args != null) {
			setTitle((String) args.get("name"));
		} else {
			setTitle("退款须知");
		}
		showTitleBar();
	}

	protected void initData() {
		if (args != null) {
			webView.loadUrl((String) args.get("url"));
		} else {
			webView.loadUrl("file:///android_asset/other/agreement.html");
		}
	}

	protected void initListener() {

	}

	public <T> void showData(T... t) {

	}

	public <T> void showNoData(T... t) {

	}

	public void onClick(View view) {

	}

}
